﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiXinSDK.MP.Model
{
	public class ResponseModel
	{
		/// <summary> 请求是否成功 </summary>
		public virtual bool IsCompleted { get { return ErrCode == ErrorCode.请求成功; } }

		/// <summary>
		/// 返回的错误码
		/// </summary> 
		[JsonProperty("errcode")]
		public virtual ErrorCode ErrCode { get; set; }

		/// <summary>
		/// 错误提示消息
		/// </summary>
		[JsonProperty("errmsg")]
		public virtual string ErrMsg { get; set; }

	}


}
